fname = input('请输入一段文字：')
fo = open('d:\\hello.txt','w+')
fo.writelines(fname)
for line in fo:
    print(line)
fo.close()
